<?php
// 本类由系统自动生成，仅供测试用途
namespace Home\Controller;
use Think\Controller;
class IndexController extends PublicController {
    public function indexAction(){	
	
		session('params',null); // 删除params
		
		//读取新品
		$nlist=$this->getshoplist('new',$count=10);
		$this->assign('nlist',$nlist);
		
		//读取热销
		$hlist=$this->getshoplist('hot',$count=10);
		$this->assign('hlist',$hlist);
		
		//读取推荐
		$rlist=$this->getshoplist('recommend',$count=10);
		$this->assign('rlist',$rlist);
		
		
		//读取分类树
		$tree=$this->gettree(0);
		
		$this->assign('tree',$tree);
		
		
		$this->view();
	
    }
	
	

	
	
	
}